```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>程序员技术推文自动化生成器 | n8n工作流指南</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background-color: #f8fafc;
            color: #1e293b;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
        }
        .card-hover {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .step-icon {
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        }
        .code-block {
            background-color: #1e293b;
            border-left: 4px solid #8b5cf6;
        }
        .dropdown-content {
            transition: all 0.3s ease;
            max-height: 0;
            overflow: hidden;
        }
        .dropdown-content.active {
            max-height: 1000px;
            padding-top: 0.5rem;
            padding-bottom: 0.5rem;
        }
        .highlight {
            position: relative;
        }
        .highlight::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 30%;
            background-color: rgba(139, 92, 246, 0.2);
            z-index: -1;
            transform: scaleX(1.02) skewX(-15deg);
        }
    </style>
</head>
<body class="antialiased">
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-4">
        <div class="max-w-5xl mx-auto">
            <div class="flex flex-col md:flex-row items-center">
                <div class="md:w-1/2 mb-10 md:mb-0">
                    <h1 class="text-4xl md:text-5xl font-bold mb-6 leading-tight">
                        <span class="highlight">技术推文自动化生成器</span>
                    </h1>
                    <p class="text-lg md:text-xl mb-8 opacity-90">
                        利用n8n工作流自动化生成技术推文，为开发者打造高效社交媒体影响力
                    </p>
                    <div class="flex space-x-4">
                        <a href="#workflow" class="bg-white text-indigo-600 px-6 py-3 rounded-full font-medium hover:bg-indigo-50 transition duration-300">
                            <i class="fas fa-play-circle mr-2"></i>开始工作流
                        </a>
                        <a href="#benefits" class="text-white px-6 py-3 rounded-full font-medium border-2 border-white hover:bg-white hover:text-indigo-600 transition duration-300">
                            <i class="fas fa-star mr-2"></i>核心优势
                        </a>
                    </div>
                </div>
                <div class="md:w-1/2 relative">
                    <div class="bg-white/20 backdrop-blur-sm p-6 rounded-xl shadow-xl">
                        <div class="code-block text-gray-300 p-4 rounded-lg mb-4">
                            <p class="font-mono text-sm">
                                <span class="text-purple-400">💡</span> 学习10个JavaScript技巧，让你的代码飞起来！🚀 
                                <span class="text-pink-400">调试到凌晨，世界更美好 🐛</span> 
                                <span class="text-blue-400">#DevInspiration</span>
                            </p>
                        </div>
                        <div class="flex items-center text-sm">
                            <div class="bg-indigo-100 text-indigo-800 rounded-full px-3 py-1 mr-2">
                                <i class="fas fa-clock mr-1"></i> 2023-11-15 08:00
                            </div>
                            <div class="bg-green-100 text-green-800 rounded-full px-3 py-1">
                                <i class="fas fa-check-circle mr-1"></i> 已发布
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Features Section -->
    <section id="benefits" class="py-16 px-4 bg-white">
        <div class="max-w-5xl mx-auto">
            <h2 class="text-3xl font-bold text-center mb-12">
                <span class="highlight">为什么选择</span> 这个工作流？
            </h2>
            <div class="grid md:grid-cols-3 gap-8">
                <div class="card-hover bg-white p-6 rounded-xl shadow-md border border-gray-100">
                    <div class="step-icon w-12 h-12 rounded-full flex items-center justify-center text-white mb-4">
                        <i class="fas fa-bolt text-2xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">省时高效</h3>
                    <p class="text-gray-600">自动化完成内容收集、创意生成和发布流程，每天节省1小时以上时间。</p>
                </div>
                <div class="card-hover bg-white p-6 rounded-xl shadow-md border border-gray-100">
                    <div class="step-icon w-12 h-12 rounded-full flex items-center justify-center text-white mb-4">
                        <i class="fas fa-brain text-2xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">智能创意</h3>
                    <p class="text-gray-600">利用OpenAI生成既有技术深度又带幽默感的推文，提升互动率。</p>
                </div>
                <div class="card-hover bg-white p-6 rounded-xl shadow-md border border-gray-100">
                    <div class="step-icon w-12 h-12 rounded-full flex items-center justify-center text-white mb-4">
                        <i class="fas fa-chart-line text-2xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">数据追踪</h3>
                    <p class="text-gray-600">完整记录推文历史，方便分析内容效果，持续优化策略。</p>
                </div>
            </div>
        </div>
    </section>

    <!-- Workflow Section -->
    <section id="workflow" class="py-16 px-4 bg-gray-50">
        <div class="max-w-5xl mx-auto">
            <div class="text-center mb-12">
                <h2 class="text-3xl font-bold mb-4">
                    <span class="highlight">工作流</span> 实现步骤
                </h2>
                <p class="text-gray-600 max-w-2xl mx-auto">按照以下步骤配置您的自动化推文生成系统</p>
            </div>

            <div class="bg-white rounded-xl shadow-md overflow-hidden mb-16">
                <div class="p-6 md:p-8">
                    <h3 class="text-2xl font-bold mb-6 flex items-center">
                        <span class="step-icon w-10 h-10 rounded-full flex items-center justify-center text-white mr-4">1</span>
                        前提条件准备
                    </h3>
                    <ul class="space-y-4 text-gray-700">
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                            <span>已安装n8n（推荐n8n Cloud或Docker自托管）</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                            <span>Google账户（用于Google Sheet和OAuth 2.0凭据）</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                            <span>OpenAI API密钥（<a href="https://platform.openai.com" class="text-indigo-600 hover:underline" target="_blank">获取地址</a>）</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                            <span>（可选）Twitter/X开发者账号</span>
                        </li>
                    </ul>
                </div>
            </div>

            <!-- Workflow Steps -->
            <div class="space-y-8">
                <!-- Step 1 -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                    <div class="p-6 md:p-8">
                        <div class="flex justify-between items-start">
                            <h3 class="text-2xl font-bold mb-6 flex items-center">
                                <span class="step-icon w-10 h-10 rounded-full flex items-center justify-center text-white mr-4">2</span>
                                创建工作流
                            </h3>
                            <button class="dropdown-toggle text-indigo-600 hover:text-indigo-800">
                                <i class="fas fa-chevron-down"></i>
                            </button>
                        </div>
                        <div class="dropdown-content">
                            <p class="text-gray-700 mb-4">在n8n中创建新工作流并设置定时触发器：</p>
                            <ol class="list-decimal pl-5 space-y-2 text-gray-700">
                                <li>登录n8n（n8n Cloud或本地 <code class="bg-gray-100 px-2 py-1 rounded">http://localhost:5678</code>）</li>
                                <li>点击"+ New Workflow"创建新工作流</li>
                                <li>命名工作流为"技术推文灵感生成器"</li>
                            </ol>
                            <div class="mt-6">
                                <div class="code-block text-gray-300 p-4 rounded-lg">
                                    <p class="font-mono text-sm mb-2">// 配置Cron节点</p>
                                    <p class="font-mono text-sm"><span class="text-blue-400">Mode</span>: "Every Day"</p>
                                    <p class="font-mono text-sm"><span class="text-blue-400">Hour</span>: 8</p>
                                    <p class="font-mono text-sm"><span class="text-blue-400">Minute</span>: 0</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Step 2 -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                    <div class="p-6 md:p-8">
                        <div class="flex justify-between items-start">
                            <h3 class="text-2xl font-bold mb-6 flex items-center">
                                <span class="step-icon w-10 h-10 rounded-full flex items-center justify-center text-white mr-4">3</span>
                                获取Dev.to文章
                            </h3>
                            <button class="dropdown-toggle text-indigo-600 hover:text-indigo-800">
                                <i class="fas fa-chevron-down"></i>
                            </button>
                        </div>
                        <div class="dropdown-content">
                            <p class="text-gray-700 mb-4">添加RSS Read节点获取最新技术文章：</p>
                            <div class="mb-4">
                                <div class="code-block text-gray-300 p-4 rounded-lg">
                                    <p class="font-mono text-sm mb-2">// 配置RSS Read节点</p>
                                    <p class="font-mono text-sm"><span class="text-blue-400">URL</span>: "https://dev.to/feed"</p>
                                    <p class="font-mono text-sm"><span class="text-blue-400">Limit</span>: 1</p>
                                </div>
                            </div>
                            <p class="text-gray-700">节点将返回类似以下数据：</p>
                            <div class="mt-2">
                                <div class="code-block text-gray-300 p-4 rounded-lg">
                                    <p class="font-mono text-sm">{</p>
                                    <p class="font-mono text-sm ml-4"><span class="text-blue-400">"title"</span>: "10 JavaScript Tips",</p>
                                    <p class="font-mono text-sm ml-4"><span class="text-blue-400">"link"</span>: "https://dev.to/..."</p>
                                    <p class="font-mono text-sm">}</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Step 3 -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                    <div class="p-6 md:p-8">
                        <div class="flex justify-between items-start">
                            <h3 class="text-2xl font-bold mb-6 flex items-center">
                                <span class="step-icon w-10 h-10 rounded-full flex items-center justify-center text-white mr-4">4</span>
                                生成推文灵感
                            </h3>
                            <button class="dropdown-toggle text-indigo-600 hover:text-indigo-800">
                                <i class="fas fa-chevron-down"></i>
                            </button>
                        </div>
                        <div class="dropdown-content">
                            <p class="text-gray-700 mb-4">使用OpenAI生成有吸引力的技术推文：</p>
                            <div class="mb-4">
                                <div class="code-block text-gray-300 p-4 rounded-lg">
                                    <p class="font-mono text-sm mb-2">// 配置OpenAI节点</p>
                                    <p class="font-mono text-sm"><span class="text-blue-400">Model</span>: gpt-4-mini</p>
                                    <p class="font-mono text-sm"><span class="text-blue-400">Prompt</span>:</p>
                                    <p class="font-mono text-sm mt-2">"根据以下文章标题生成一条不超过280字符的Twitter推文，风格专业但有趣，包含程序员梗和表情..."</p>
                                </div>
                            </div>
                            <p class="text-gray-700">示例输出：</p>
                            <div class="mt-2">
                                <div class="code-block text-gray-300 p-4 rounded-lg">
                                    <p class="font-mono text-sm">💡 学习10个JavaScript技巧，让你的代码飞起来！🚀 详情：https://dev.to/... #TechTips</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Step 4 -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                    <div class="p-6 md:p-8">
                        <div class="flex justify-between items-start">
                            <h3 class="text-2xl font-bold mb-6 flex items-center">
                                <span class="step-icon w-10 h-10 rounded-full flex items-center justify-center text-white mr-4">5</span>
                                保存到Google Sheets
                            </h3>
                            <button class="dropdown-toggle text-indigo-600 hover:text-indigo-800">
                                <i class="fas fa-chevron-down"></i>
                            </button>
                        </div>
                        <div class="dropdown-content">
                            <p class="text-gray-700 mb-4">配置Google Sheets节点保存推文记录：</p>
                            <ol class="list-decimal pl-5 space-y-2 text-gray-700">
                                <li>创建Google Sheets凭据（OAuth 2.0）</li>
                                <li>创建工作表并获取Spreadsheet ID</li>
                                <li>配置Google Sheets节点</li>
                            </ol>
                            <div class="mt-4">
                                <div class="code-block text-gray-300 p-4 rounded-lg">
                                    <p class="font-mono text-sm mb-2">// 配置Google Sheets节点</p>
                                    <p class="font-mono text-sm"><span class="text-blue-400">Operation</span>: Append</p>
                                    <p class="font-mono text-sm"><span class="text-blue-400">Values</span>:</p>
                                    <p class="font-mono text-sm ml-4">Column A: {{ $node["Set"].json["timestamp"] }}</p>
                                    <p class="font-mono text-sm ml-4">Column B: {{ $node["Set"].json["tweet"] }}</p>
                                    <p class="font-mono text-sm ml-4">Column C: {{ $node["RSS Read"].json["link"] }}</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Workflow Diagram -->
    <section class="py-16 px-4 bg-white">
        <div class="max-w-5xl mx-auto">
            <h2 class="text-3xl font-bold text-center mb-12">
                完整工作流 <span class="highlight">可视化</span>
            </h2>
            <div class="bg-gray-50 p-6 rounded-xl">
                <div class="mermaid">
                    graph LR
                    A[定时触发\n每天早上8点] --> B[RSS Read\n获取Dev.to文章]
                    B --> C[OpenAI\n生成推文]
                    C --> D[Set\n格式化数据]
                    D --> E[Google Sheets\n保存记录]
                    E --> F{是否发布到Twitter?}
                    F -->|是| G[Twitter/X\n发布推文]
                    F -->|否| H[完成]
                </div>
            </div>
        </div>
    </section>

    <!-- Final Result -->
    <section class="py-16 px-4 bg-indigo-50">
        <div class="max-w-5xl mx-auto">
            <div class="bg-white rounded-xl shadow-md overflow-hidden p-8">
                <h2 class="text-3xl font-bold mb-8">
                    最终效果预览
                </h2>
                <div class="grid md:grid-cols-2 gap-8">
                    <div>
                        <h3 class="text-xl font-bold mb-4 flex items-center">
                            <i class="fas fa-table mr-2 text-indigo-600"></i> Google Sheet记录
                        </h3>
                        <div class="border border-gray-200 rounded-lg overflow-hidden">
                            <table class="min-w-full divide-y divide-gray-200">
                                <thead class="bg-gray-50">
                                    <tr>
                                        <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">时间戳</th>
                                        <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">推文内容</th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-gray-200">
                                    <tr>
                                        <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">2023-11-15T08:00:00Z</td>
                                        <td class="px-4 py-3 text-sm text-gray-900">💡 学习10个JavaScript技巧，让你的代码飞起来！🚀 调试到凌晨，世界更美好 🐛 #DevInspiration</td>
                                    </tr>
                                    <tr>
                                        <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">2023-11-14T08:00:00Z</td>
                                        <td class="px-4 py-3 text-sm text-gray-900">🔥 Python 3.12新特性解析！你的代码还能更优雅 👨‍💻 #Python #编程技巧</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div>
                        <h3 class="text-xl font-bold mb-4 flex items-center">
                            <i class="fab fa-twitter mr-2 text-blue-400"></i> Twitter/X发布
                        </h3>
                        <div class="bg-white border border-gray-200 rounded-xl p-4 shadow">
                            <div class="flex items-start mb-3">
                                <div class="bg-indigo-100 w-10 h-10 rounded-full flex items-center justify-center mr-3">
                                    <i class="fas fa-user text-indigo-600"></i>
                                </div>
                                <div>
                                    <p class="font-bold">开发者账号</p>
                                    <p class="text-gray-500 text-sm">@dev_username</p>
                                </div>
                            </div>
                            <p class="mb-3">💡 学习10个JavaScript技巧，让你的代码飞起来！🚀 调试到凌晨，世界更美好 🐛 #DevInspiration</p>
                            <p class="text-blue-500 text-sm mb-3">https://dev.to/10-javascript-tips</p>
                            <div class="flex text-gray-500 text-sm space-x-4">
                                <span><i class="far fa-comment mr-1"></i> 12</span>
                                <span><i class="fas fa-retweet mr-1"></i> 28</span>
                                <span><i class="far fa-heart mr-1"></i> 156</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <script>
        // Initialize Mermaid
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });

        // Dropdown functionality
        document.querySelectorAll('.dropdown-toggle').forEach(toggle => {
            toggle.addEventListener('click', () => {
                const content = toggle.parentElement.parentElement.querySelector('.dropdown-content');
                content.classList.toggle('active');
                const icon = toggle.querySelector('i');
                if (content.classList.contains('active')) {
                    icon.classList.remove('fa-chevron-down');
                    icon.classList.add('fa-chevron-up');
                } else {
                    icon.classList.remove('fa-chevron-up');
                    icon.classList.add('fa-chevron-down');
                }
            });
        });
    </script>
</body>
</html>
```